<?php 
/*
echo "<pre>";
print_r($config);
echo "</pre>";
 */
$CLIENT='';
?>
<script type='text/javascript'>
    CONFIG.subtwich		= 	'<?=$config['subtwich']?>';
    CONFIG.room			=	'<?=$config['room']?>';
    CONFIG.siteUrl		=	'<?=base_url()?>';
    CONFIG.host			=	'<?=$config['host']?>';
    CONFIG.port 		=	'<?=$config['port']?>';
    CONFIG.protocol 	= 	'<?=$config['protocol']?>';
    CONFIG.node_url 	=	'<?=$config['node_url']?>';
    CONFIG.autouser		=	'<?=$config['autouser']?>';
    
    $(document).ready(function() {
        resizeLog();
        if (CONFIG.debug) {
            scrollDown();
        }
    });
    $(window).bind('resize',function() {
        resizeLog();
    });
    
</script>


<div id="connect">
	<input id="nickInput" class="text" maxlength='20' type="hidden" name="nick" value="<?=$config['username']?>"/>
	<a href="#" id="connectButton"><img src="<?=base_url()?>/media/images/chat.png"/></a>
	<img id="mascot" src="<?=base_url()?>/media/images/mascot_us.png"/>
</div>

<div id="loading"><p><img src="http://localhost/sites/rmci/media/images/chatloader.gif"/></p></div>
			
<div id='logwrap'>
	<div id="log"></div>
</div>

<div id="toolbar">
    <ul id="status">
        <li class="date" id="currentTime">12:59</li>
        <li id='currentUsers'><a id="usersLink" href="#">5 users</a></li>
    </ul>
    <div id='closechatdiv'><a id="closechat" href="#">[hide][x]</a></div>
    <input tabindex="1" maxlength='2000' type="text" id="entry" />
    
    <img id="entry-btn" src="http://localhost/sites/rmci/media/images/chat.png" width="50px" height="40px"/>
</div> 
